package aba.test.yurisan;

import aba.test.yurisan.R.id;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;
import android.widget.EditText;

public class transferenciamismobanco extends Activity {
	public static final int DIALOGO_CONFIRMACION=1;
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);     //Para colocar titlebar   
        setContentView(R.layout.window_transferencia); 
        getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.window_titulo); // Para colocar titlebar
        
        Button salir =(Button)findViewById(id.boton_regresar3);
        Button confirmar=(Button)findViewById(id.boton_confimar);
        final EditText cuenta=(EditText)findViewById(id.con_numcuenta);
        final EditText monto=(EditText)findViewById(id.con_monto);
        final EditText cedula=(EditText)findViewById(id.con_cedula);
        final EditText nombre=(EditText)findViewById(id.con_nombre);
        salir.setOnClickListener(new OnClickListener() {
			
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				finish();
			}
		});
        confirmar.setOnClickListener(new OnClickListener() {
			
			
			public void onClick(View v) {
				
				// TODO Auto-generated method stub
				/*
				intent.putExtra("CUENTA",cuenta.getText().toString());
				intent.putExtra("CUENTA",cuenta.getText().toString());
        		intent.putExtra("NOMBRE",nombre.getText().toString());       		
        		intent.putExtra("CEDULA",cedula.getText().toString());
        		intent.putExtra("MONTO",monto.getText().toString());
		        	*/
				onCreateDialog(1);
		        
			}
		});
	}
	protected Dialog onCreateDialog(int id) {
   	 Dialog dialogo = null;
       switch (id) {
       case DIALOGO_CONFIRMACION:
       	new AlertDialog.Builder( this )
       	.setMessage( "Deposito Realizado exitosamente." )
       	.setPositiveButton( "OK", new DialogInterface.OnClickListener() {
       		public void onClick(DialogInterface dialog, int which) {
       			Log.d( "AlertDialog", "Positive" );
       			finish();
       		}
       	})        	
       	.show();
       	break;
       }
		return dialogo;
   }
}

	
